﻿@model DLM.Domain.Model.Order
@{
    ViewBag.Title = "订单详情";
    Layout = "~/Views/Shared/_Master.cshtml";
}
@using (Html.BeginForm("Confirm", "Payment", new { orderNo = Model.OrderNo, tradeNo = Model.TradeNo }, FormMethod.Post))
{
    <!--main680px-->
    <div class="main">
        <div class="main_tab_2">
            <div class="main_tab_2_up">
                <ul>
                    <li class="current"><a href="#">订单详情</a></li>
                </ul>
            </div>
            <div class="main_tab_2_down">
                <div class="box">
                 
                    <div class="pay_status">
                        @{ switch (Model.TradeStatus)
                           {
                               case "WAIT_BUYER_PAY":
                            @Html.Label("等待买家支付")
                       break;
                               case "WAIT_SELLER_SEND_GOODS":
                            @Html.Label("等待卖家发货")
                       break;
                               case "WAIT_BUYER_CONFIRM_GOODS":
                            @Html.Label("等待买家确认")
                       break;
                               case "TRADE_FINISHED":
                            @Html.Label("交易结束")
                       break;
                               default: break;
                           } }
                        </div>
                    <table class="tb zhifu">
                        <thead>
                            <tr>
                                <th>
                                    订单号
                                </th>
                                <th>
                                    支付宝交易编号
                                </th>
                                <th>
                                    下单日期
                                </th>
                                <th>
                                    金额
                                </th>
                                <th>
                                    备注
                                </th>
                                <th>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>
                                    @Model.OrderNo
                                </td>
                                <td>
                                    @Model.TradeNo
                                </td>
                                <td>
                                    @Model.OrderDate
                                </td>
                                <td>
                                    @Model.Price
                                </td>
                                <td>
                                    @Model.Body
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                                  <tr>
                                <td colspan="5">
                                    总价:@Model.Price 元
                                    @if (Model.TradeStatus == "WAIT_BUYER_CONFIRM_GOODS")
                                    {
                                        <input type="button" value="去确认" class="btn" onclick="javascript: window.location.href = 'https://lab.alipay.com/consume/queryTradeDetail.htm?tradeNo=@Model.TradeNo'" />
                                       
                                    }
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    @*     <div class="pay_tips">
                    客户信息</div>
                <table class="tb zhifu_detail">
                    <tr>
                        <td class="left">
                            描述
                        </td>
                        <td>
                            内容
                        </td>
                    </tr>
                    <tr>
                        <td>
                            对方信息
                        </td>
                        <td>
                            内容
                        </td>
                    </tr>
                    <tr>
                        <td>
                            收货信息
                        </td>
                        <td>
                            内容
                        </td>
                    </tr>
                    <tr>
                        <td>
                            时间报告
                        </td>
                        <td>
                            <table class="time_report">
                                <thead>
                                    <tr>
                                        <th>
                                            购买时间
                                        </th>
                                        <th>
                                            付款时间
                                        </th>
                                        <th>
                                            发货时间
                                        </th>
                                        <th>
                                            交易结束时间
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            2012023
                                        </td>
                                        <td>
                                            343223
                                        </td>
                                        <td>
                                            23232
                                        </td>
                                        <td>
                                            f
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </table>*@
                </div>
                <div class="box" style="display: none;">
                    456</div>
            </div>
        </div>
    </div>
    <!--main-end-->
}
